package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.AdSensitiveDto;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;


public interface SensitiveService extends IService<AdSensitive> {


    /**
     * 根据名称模糊查询敏感词信息
     * @param adSensitiveDto
     * @return
     */
    public ResponseResult findByNameAndPage(AdSensitiveDto adSensitiveDto);
    /**
     * 插入敏感词信息
     * @param adSensitive
     * @return
     */
    public ResponseResult insert(AdSensitive adSensitive);

    /**
     * 插修改敏感词信息
     * @param adSensitive
     * @return
     */
    public ResponseResult update(AdSensitive adSensitive);

    /**
     * 删除频敏感词信息
     * @param id
     * @return
     */
    public ResponseResult delete(Integer id);
}

